<template>
  <view class="message">
    <view class="message-header">
      <view class="message-title">{{ data.messageHeader }}</view>
      <view class="message-time">{{ data.pushTime }}</view>
    </view>
    <view class="message-body">
      <view class="message-content">{{ data.messageContent }}</view>
    </view>
  </view>
</template>
<script>
export default {
  name: "detail",
  onLoad(options) {
    if (options.data) {
      this.data = JSON.parse(options.data)
    }
  },
  data() {
    return {
      data: {}
    }
  },
}
</script>


<style scoped lang="scss">
.message {
  padding: 20rpx;
  background-color: #fff;
  min-height: 100vh;

  .message-header {
    padding-bottom: 10rpx;
    border-bottom: 1px solid #eee;

    .message-title {
      font-size: 28rpx;
      font-weight: bold;
      margin-bottom: 10rpx;
    }

    .message-time {
      font-size: 26rpx;
      color: #999;
    }
  }

  .message-body {
    padding-top: 10rpx;
    font-size: 26rpx;
    line-height: 1.5;
  }
}
</style>